// pages/start/start.js
const app = getApp();
const mta = require('../../../mta_sdk/mta_analysis.js');
Page({

  data: {
    queryData:{}
  },

  onLoad: function (opt) {
    console.log(opt)
    this.setData({
      queryData:opt
    });
    mta.Page.init();
  },
  getStart(e){
    let q=this.data.queryData;
    app.userLogin(e.detail.userInfo,()=>{
      console.log('授权成功');
      wx.navigateTo({
        url: `/pages/tests/details/details?test_id=${q.test_id}&type=${q.type}&title=${q.title}&parentTitle=${q.parentTitle}`,
      })
    })
  },
  formSubmit(e){
    app.sendForm(e);
  },

})